package com.yang.designmode.ActionMode.state.mario.branch;

public class AppStart {
    public static void main(String[] args) {
        MarioStateMachine marioStateMachine = new MarioStateMachine();
        marioStateMachine.obtainMushRoom();
        System.out.println("当前分数：" + marioStateMachine.getScore()+" 当前状态："+marioStateMachine.getCurrentState());
        marioStateMachine.obtainCape();
        System.out.println("当前分数：" + marioStateMachine.getScore()+" 当前状态："+marioStateMachine.getCurrentState());
        marioStateMachine.meetMonster();
        System.out.println("当前分数：" + marioStateMachine.getScore()+" 当前状态："+marioStateMachine.getCurrentState());
    }
}
